<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <link href="css/bootstrap.min.css" rel="stylesheet" />
        <link href="css/bootstrap-theme.min.css" rel="stylesheet" />
        <link href="css/header.css" rel="stylesheet" />
        <link href="css/index.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/tailwind.min.css">
        <link rel="stylesheet" href="css/chat.css">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome/css/font-awesome.min.css">

        <script src="js/jquery-3.4.1.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
        <title>馋猫网</title>

    </head>
    <!--测试GitHub同步-->
    <!--logo-->
    <script type="text/javascript">
        console.log("%c                             047                                                                                                                                                    \n                            77 127                                      7                                                                                                           \n                           7177  1807                            725455180                                                                                                          \n                           2  767  7081    771122211777      7142777777 28                                                                                                          \n                          1     47   790021117 77777719080 7517  7777   90                                                                                                          \n                          1      81     17 77  7777     717    177      05                                                                                                          \n                         77   777       7777  7777  77777     7         87                                                                                                          \n                         1  717        7777   777   7777                07                                                                                                          \n                         7 12                       7                   8                                                                                                           \n                         567     7 71 7                    77           22                                                                                                          \n                        79    77    7                                    07                                                                                                         \n                       94                                  7 7 7          0               080891         1080827                   10027   708067 714957   7199927                  \n                      85                                   77             49             08   7180      807   708777777           80777681506   7580 772825047777580                \n                     84                                           7        8             87      107   107      780000080801     80      707      78     008       407              \n                    10                                             7       09            07       4069208                  08    05           805117      12        190087          \n                    0           7712777                              7     70            87            81                   48    01         70                          82         \n                   01          98080808                77290897       7     87           07           87                     0     181        8                           8         \n               777787          2777  77                108080808            05          78           87  77777775556        785    500        78                          78        \n                  1017                                        717           20   711551 10        7  0 7857777777777         7108 70           287                        50        \n                 7487                                                    77 18 8057    808        01 5155                       78787            55607      780        80867        \n                  70                                                     1775087       010     71089  708                        28 80             085       187       1801         \n     10        77778117               15     8      17                  777 58      7507 707  587  107 707      151     752       07 1047 787     00                      787       \n    7080           28               77705777805    7806606006517       777 7829   9617     9868      77080      508     7080      10   751801     87                       78       \n    005807          987      7711117777771217 7944457       77140891    777007  78            01       7081                        87    702      78                        98      \n   78555601          7847725517777   777    7   777   777  717   7728047  908   8             70        8787           162221      78   807        07       8       92       07     \n   805112906          28177   777    77    7    777   777 11 77777   776087 0   01             86       78 77         08    787    20  80          70       08      78       10     \n   0955221508     74417  7   7777   777   77   777   777 15 777777777   77548   70              8        07 602    085807     8080808  0            81                        87    \n  781112111208272977   777   7777   777  777   7     77 78 77777777  7     7087  8              08       706      98    71697 78    78 10            8                        78    \n  905222525680204   777777   7777   777   77   7777777  14 77777777751117 7  780 67              07      78       80        61 0     78 701          06                        04   \n  0911125804    487  77777   7777   777  777  780808082 41 7777777 707777777   7087              60       05    0079077      87       01  5817580     0       78       87      70   \n  89459081       7867 7777   7777   777   77   48944907 07 77777777 201  777777  08               87       48  18    72001   08127    80   780511     50       05      68       80  \n  066807           1057 777   7777   77  777    7715251 41 77777777 0477777777   40               28         1680        71997   700  09   50          8                         8  \n  8087               2817 7   7777   77   77   7    777 70  7777777  71777777  1801                01         80117                 806    78          78                        98 \n  51                   5057  777777  777   7   777       87  7777777    77   100 12                707     7480   79080577          78      08          40                       70 \n                         1807   777777777 777   777   77 787  777777777   7285   07                 708110802          71580857     80       087         487                    708 \n                           76857    7777777777   777   77 7867  77    7748165    8                    7117                   71808084         780800600808520808080808080808080805  \n                              7985777     7777777777    7   1591  771491  71    96                                                                 7777                             \n                                5716494217777777       77777771496087   757    70                                                                                                   \n                                0   77771545846000008959006451177  027177     40                                                                                                    \n                                0   9       0         49           8       7587                                                                                                     \n                                67  8      787       78           7077771557                                                                                                        \n                                 8 47      816       8  17 7     70                                                                                                                 \n                                 780      7071      82707       80                                                                                                                  \n                                  0      70 5      8547       987                                                                                                                   \n                                  50877780 15 5  787 07   7162                                                                                                                      \n                       711199000602968080224080808011508080857771115969427                                                                                                          \n                                                                    77          ",'color:pink;');
    </script>
    <body>
        <div class="global" id="global">
            <div class="a0"></div>
            <div class="a">
                <div class="a1">
                    <div class="a11">
                        <ul class="ax">
                            <li class="a111">
                                <a class="label" title="首页" href="index.html">首页</a>
                            </li>
                            <li class="a111">
                                <a class="label" title="我的商品" href="html/Own.html" id="indexOI" onclick="Own_Issue()">我的商品</a>
                            </li>
                            <li class="a111">
                                <a class="label" title="我有建议" href="html/Own.html" id="indexOA" onclick="Own_Advise()">我有建议</a>
                            </li>
                        </ul>
                    </div>
                    <div class="a11">
                        <div class="row">
                            <div class="col-lg-6 a00">
                                <div class="input-group">
                                    <input type="text" class="form-control" placeholder="Search for...">
                                    <span class="input-group-btn">
                            <button class="btn btn-default" type="button" id="buttaaa">Go!</button>
                          </span>
                                </div><!-- /input-group -->
                            </div><!-- /.col-lg-6 -->
                        </div><!-- /.row -->
                    </div>
                    <div class="a11" id="rig">
                        <ul class="ax">
                            <li class="a111" id="hove">
                                <!--<a class="label" title="用户名" href="html/login.html" id="user-name-label">用户名</a>-->
                                <a href="html/login.html">
                                    <img src="img/user_img/0.jpg" class="img-circle" style="margin: 0 auto;">
                                </a>
                                <div class="appear" id="app">
                                    <img class="appear-son-gif" src="img/haipa.gif"/>
                                    <div class="appear-son-button">
                                        <a href="html/login.html" >
                                            <input class="btn btn-default" value="登录" style="width: 240px;"/>
                                        </a>
                                    </div>
                                    <div class="register-index">还没有账号？
                                        <a title="注册" href="html/register.html">立即注册</a>
                                    </div>
                                </div>
                            </li>
                            <li class="a111">
                                <input class="cursor-pointer h-10 outline-none rounded-full w-10 input-color-picker" type="color" data-id="bg-color" name="Background" style="width: 42px;height: 42px"/>
                            </li>
                            <li class="a111" id="set">
                                <a class="label" title="我有商品" href="html/add.html">我有商品</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="cm-head">
                <div class="barrage-container-wrap clearfix">
                    <div class="barrage-container">
                        <div class="cm-head-son">
                            <div class="cm-head-title">馋猫网</div>
                            <div class="cm-head-chat">
                                <div class="cm-head-chat_1"></div>
                                <div class="send-wrap">
                                    <input type="text" class="input" placeholder="弹幕发送">
                                    <span class="send-btn">发送</span>
                                </div>
                            </div>
                            <div class="cm-head-logo">
                                <img src="img/timg.png" style="width: 350px; height: 320px;">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="cm-main">
            <div class="cm-main-son">
                <div class="cm-main-border">
                    <img src="img/new-arrival.png" class="cm-main-img">
                    <div class="cm-main-span">新鲜</div>
                    <div class="cm-main-more">
                        <a title="更多" href="html/index_xx.html?xx">更多>></a>
                    </div>
                </div>
                <div class="cm-main-goods-all" id="xx">
                    <!--新鲜-->
                </div>
                <div class="cm-main-goods-space"></div>

                <!--这是一段重复代码-->
                <div class="cm-main-border">
                    <img src="img/file.png" class="cm-main-img">
                    <div class="cm-main-span">资料</div>
                    <div class="cm-main-more">
                        <a title="更多" href="html/index_zl.html?zl">更多>></a>
                    </div>
                </div>
                <div class="cm-main-goods-all" id="zl">
                    <!--资料-->
                </div>
                <div class="cm-main-goods-space"></div>

                <!--这是一段重复代码-->
                <div class="cm-main-border">
                    <img src="img/digital.png" class="cm-main-img">
                    <div class="cm-main-span">数码</div>
                    <div class="cm-main-more">
                        <a title="更多" href="html/index_sm.html?sm">更多>></a>
                    </div>
                </div>
                <div class="cm-main-goods-all" id="sm">
                    <!--数码-->
                </div>
                <div class="cm-main-goods-space"></div>

                <!--这是一段重复代码-->
                <div class="cm-main-border">
                    <img src="img/other.png" class="cm-main-img">
                    <div class="cm-main-span">其他</div>
                    <div class="cm-main-more">
                        <a title="更多" href="html/index_qt.html?qt">更多>></a>
                    </div>
                </div>
                <div class="cm-main-goods-all" id="qt">
                    <!--其他-->
                </div>
                <div class="cm-main-goods-space"></div>

            </div>
        </div>
        <script src="js/umbrella.js" color="0,0,255" opacity='0.7' zIndex="-2" count="160"></script>
        <script src="js/chat.js"></script>
        <!--<div class="a"></div>-->
        <!--<div class="a cm-button">-->
            <!--<span class="cm-button-span">此网站仅供学习无任何商业用途</span>-->
            <!--<span class="cm-button-span">黄山学院软件小组</span>-->
        <!--</div>-->

        <script type="text/javascript">
            var Href = sessionStorage.getItem("href");
            var message = JSON.parse(sessionStorage.getItem("head_message"));

            function only() {
                window.location.href ="html/look.html";
            }

            $("#buttaaa").click(function () {
                window.location.href ="html/search.html";
            })

            // 用来处理头部数据
            $(document).ready(function () {
                //从sessionStorage里取出存入的信息
                // var Mes = localStorage.getItem("HeadMes");              //localStorage
                // sessionStorage.removeItem("head_message");              //localStorage
                // sessionStorage.setItem("head_message", Mes);            //localStorage
                var message = JSON.parse(sessionStorage.getItem("head_message"));

                const dynamicInputs = document.querySelectorAll('input.input-color-picker');

                const handleThemeUpdate = (cssVars) => {
                    const root = document.querySelector(':root');
                    const keys = Object.keys(cssVars);
                    keys.forEach(key => {
                        root.style.setProperty(key, cssVars[key]);
                    });
                }

                dynamicInputs.forEach((item) => {
                    item.addEventListener('input', (e) => {
                        const cssPropName = `--primary-${e.target.getAttribute('data-id')}`;
                        console.log(cssPropName);
                        handleThemeUpdate({
                            [cssPropName]: e.target.value
                        });
                        $("#global").css("background-color", e.target.value)
                    });
                });

                if (message!==null)
                {
                    var str = "<a href=\"#\">\n" +
                        "                                    <img src=\"img/user_img/"+ message.headimg+"\" class=\"img-circle\" id=\"imgh\" style=\"margin: 0 auto;\">\n" +
                        "                                </a>\n" +"<div class=\"appear\" id=\"app\">\n" +
                        "                                    <div class=\"appear-son-less\"></div>\n" +
                        "                                    <div class=\"appear-son-name\">\n" +
                        "                                        <div class=\"appear-son-name-p\"><a href=\"html/Own.html\">"+ message.username +"</div>\n" +
                        "                                    </div>\n" +
                        "                                    <div class=\"appear-son-my\">\n" +
                        "                                        <div class=\"appear-son-my-left\">\n" +
                        "                                            <a title=\"修改信息\" href=\"html/Own.html\" onclick=\"Own_Mes_Amend()\">修改信息</a>\n" +
                        "                                        </div>\n" +
                        "                                        <div class=\"appear-son-my-right\">\n" +
                        "                                            <a title=\"我的商品\" href=\"html/Own.html\" onclick=\"Own_Issue()\">我的商品</a>\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "                                    <div class=\"appear-son-my\">\n" +
                        "                                        <div class=\"appear-son-my-left\">\n" +
                        "                                            <a title=\"举报\" href=\"html/Own.html\" onclick=\"Own_Report()\">举报</a>\n" +
                        "                                        </div>\n" +
                        "                                        <div class=\"appear-son-my-right\">\n" +
                        "                                            <a title=\"建议\" href=\"html/Own.html\" onclick=\"Own_Advise()\">建议</a>\n" +
                        "                                        </div>\n" +
                        "                                    </div>\n" +
                        "                                    <div class=\"appear-son-buttom\">\n" +
                        "                                        <a title=\"退出\" class=\"appear-son-buttom-right\" href=\"#\">退出</a>\n" +
                        "                                    </div>\n" +
                        "                                </div>";

                    $("#hove").empty();
                    $("#hove").html(str);
                }

                $("#hove").hover(function () {
                    $("#app").slideDown(700, function () {
                        $("#app").css("display", "block");
                    });
                },function () {
                    $("#app").slideUp(700, function () {
                        $("#app").css("display", "none");
                    });
                });

                $("#hove").hover(function () {
                    $("#imgh").css("height", "76px");
                    $("#imgh").css("width", "76px");
                    $("#imgh").css("border", "1px solid rgba(255, 253, 48, 0.5)");
                    $("#imgh").css("box-shadow", "rgba(111, 176, 186, 0.67) 0 0 5px 1px");
                },function () {
                    $("#imgh").css("height", "42px");
                    $("#imgh").css("width", "42px");
                    $("#imgh").css("border", "1px solid rgba(81, 49, 148, 0.1)");
                    $("#imgh").removeClass("box-shadow");
                });

            });

            function Own_Mes_Amend()
            {
                if(Href)
                {
                    sessionStorage.removeItem("href");
                    sessionStorage.setItem("href", "Own_Mes_Amend");
                }
                else
                {
                    sessionStorage.setItem("href", "Own_Mes_Amend");
                }

            }

            function Own_Issue()
            {
                if (message!==null)
                {
                    if(Href)
                    {
                        sessionStorage.removeItem("href");
                        sessionStorage.setItem("href", "Own_Issue");
                    }
                    else
                    {
                        sessionStorage.setItem("href", "Own_Issue");
                    }
                }
                else
                {
                    alert("请先登录！");
                    var OB = document.getElementById("indexOI");
                    OB.href = "#";
                }
            }

            function Own_Report()
            {
                if(Href)
                {
                    sessionStorage.removeItem("href");
                    sessionStorage.setItem("href", "Own_Report");
                }
                else
                {
                    sessionStorage.setItem("href", "Own_Report");
                }
            }

            function Own_Advise()
            {
                if (message!==null)
                {
                    if(Href)
                    {
                        sessionStorage.removeItem("href");
                        sessionStorage.setItem("href", "Own_Advise");
                    }
                    else
                    {
                        sessionStorage.setItem("href", "Own_Advise");
                    }
                }
                else
                {
                    alert("请先登录！");
                    var OA = document.getElementById("indexOA");
                    OA.href = "#";
                }
            }
        </script>
        <script type="text/javascript" src="js/commodity_message.js"></script>
        <script src="js/autoload.js"></script>
    </body>
</html>
